package thread;

import java.util.concurrent.locks.ReentrantLock;

public class demo29 {
    public static void main(String[] args) {
        ReentrantLock loker = new ReentrantLock(true);//手动指定公平锁
        loker.lock();//加锁
        loker.unlock();//解锁 分开
    }
}
